/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.neu.nutrons.lib;

import java.util.NoSuchElementException;
import java.util.Vector;

/**
 *
 * @author NUTRONS_PROGRAMMING
 */
public class NutronsQueue extends Vector{

    public void push(Object obj){
        this.addElement(obj);
    }
    
    public Object pop(){
        if(this.isEmpty())
            return null;
        try{
            Object ret = this.firstElement();
            this.removeElementAt(0);
            return ret;
        }
        catch(NoSuchElementException e){
            e.printStackTrace();
            return null;
        }
    }



}
